package com.guess.study.designpattern.templatemethod;

/**
 * Created by tianran on 2019-06-14.
 */
public class ConcreteClassA extends AbstractClass {
    @Override
    protected void doSomething() {
        System.out.println("ConcreteClassA doSomething()");
    }

    @Override
    protected void doAnything() {
        System.out.println("ConcreteClassA doAnything()->我不想使用父类的默认实现，我要覆盖它");
    }

    @Override
    protected void dependOnHook() {
        System.out.println("ConcreteClassA dependOnHook()");
    }

    // 没有覆写钩子方法，使用默认实现，dependOnHook()将会被调用
}
